Ext.define("App.special-weekday.view.SpecialWeekdayEditor", {
    extend: 'Extend.window.FormWindow',
    alias: 'widget.SpecialWeekdayEditor',
    requires: ['App.commons.field.HolidayNamesComboBox'],
    config: {
        window: {
            title: '编辑补班信息',
            width: 600,
            height: 300
        },
        entity: 'entity'
    },
    defaults: {
        columnWidth: 1
    },
    items: [{
        xtype: 'hidden',
        name: 'pk'
    }, {
        xtype: 'HolidayNamesComboBox',
        name: 'name',
        fieldLabel: '节日类型',
        allowBlank: false,
        blankText: '节日类型为必填字段，不能为空！',
        beforeLabelTextTpl: ['<span style="color:red;">*</span>'],
        maxLength: 32
    }, {
        xtype: 'datefield',
        format: 'Y-m-d',
        editable: false,
        name: 'dt',
        fieldLabel: '补班日期',
        allowBlank: false,
        blankText: '补班日期为必填字段，不能为空！',
        beforeLabelTextTpl: ['<span style="color:red;">*</span>']
    }, {
        xtype: 'textarea',
        name: 'description',
        fieldLabel: '描述',
        maxLength: 128
    }]
})
